package com.zhx.rmq.consumer.controller;

import com.zhx.rmq.utils.HttpClientUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@Component
@RabbitListener(queues = "topic.man")//监听的队列名称 topic.man
public class TopicReceiver {

    @RabbitHandler
    public void process(Map msg) {
        log.info("topic消费者1监听的队列名称 topic.man   收到消息ID: [{}]",msg.toString());
    }

}